package com.powernode.feign;

import com.powernode.domain.Member;
import com.powernode.feign.fallbackfactory.ProductMemberFeignFallbackFactory;
import com.powernode.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @create: 2024/7/25
 * @author: gyhe10
 * @description: 商品业务模块调用会员业务模块feign接口
 **/

@FeignClient(value = "member-service", fallbackFactory = ProductMemberFeignFallbackFactory.class)
public interface ProductMemberFeign {

    @GetMapping("p/user/getMemberListByOpenIdList")
    public Result<List<Member>> getMemberListByOpenIdList(@RequestParam List<String> openIdList);
}
